package org.example.service;

import org.example.dao.ApplicationProcessRepository;
import org.example.model.ApplicationProcess;
import org.example.model.ApplicationProcessEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: wwy
 * @Date: 2020/12/3 13:54
 */
@Service
public class ApplicationProcessService {
    @Autowired
    private ApplicationProcessRepository applicationProcessRepository;
    /**
     * 保存
     */
    public void save(ApplicationProcessEntity applicationProcessEntity){
        applicationProcessRepository.save(applicationProcessEntity);
    }

    /**
     * 删除
     * @param id
     */
    public void delete(long id){
        applicationProcessRepository.deleteById(id);
    }
}
